Helper for unit tests.