Fix frozen Hash issue in spec