Fixed test helper to make static pages tests work