server.py: test+fix basic retrieval code