#8 Support global 401 auth
Close #8 - Fix some holes in the tests