test for retrieving objects