REST api authentication - integration test