- tests the retrieval of records