Refactor the tests to extract the common parts to alleviate the pain of changing the internal behaviors.