added a test for getAll