Refactored getTestClient into Haggcat.TestHelper module.