plan: write unit test.