Added unittests, password external

Move password to file;