Progress with authentication, relates to issue #44
- Added tests
- Fixed issue with 401 return code from route