Added tests for authentication_engine. IN-6