Refactor test fixture in much more concise way.