improve basic_auth tests so they work with same datatype as when practically running with a web server