Updated count objects test cases to use its own bean