retrieval seems to work and junit test fixed output