add test for checkPassword