Added user hash function and store mock object