Created unit test for password functions.