Added tests similar to the ones in django for SHA1 password hasher object.