Used for tests