Fix bug where server cannot be started w/o basic auth

and add corresponding integration tests