Fixed broken tests and did test refactoring.
Added password checking from hash. Default password is kokkeli.