Added basic auth tests with Selenium, fixes #323