fix passwords, fix directory separator, added some tests