added possibility for basic http authentification. updated test