Added tests for credentials.