Refactoring performance tests