add unit test for beans