Added tests for credentials_engine. IN-6