Simpler interface for tests.