Work for tests.