Helper for tests