Added basic auth test functions.