added tests to genpasswd