Update tests and decrease cost factor in hashing