Improvements to test framework

Added unit tests 13/13 passing
Added mockPassport to mock user auth for test