add tests and minimum password
Tests and other changes