ticket:4 add unit test