Added model test suites
Moved hashing of user pass from controller in to repository