added tests for user credential correctness