changed test to test for retrieval as well