add unit test for pojo