Unit tests

Created a unit test project, made some minor changes to the service
interface and added a test for the Login function.