Implemented password unittests