test retrieval with map