Added more retrieval operations.
Added basic tests.