tests for credentials repository