Added basic auth test to api