For unit tests.