For unit test.