overriding for tests