finishing up credentials_test function