properly assert hash in spec