adds test helper and cleans up requires in tests