Add simple unit tests

This is an initial start towards adding unit tests to the Retriever.

1. Adds unit tests to a few methods that are independent of other code.
2. Change the testing setup so that ``nosetests`` run from the root directory
    can run both integration regression and unit tests.