Refactoring WebTestCase