Adding test cases for beans