tests output in hash