Fixes #7.

Added a MockServiceLocator. It makes setting up the service location
a lot easier. All unit tests are now passing.