password encrption with bcrypt, tests for encyrption