Added Unit test for password handler