fix #40 - Env "TEST" breaks functional testing
unit test for service.hasValidToken
code formatting
v0.14.2