test backport of ostruct#to_h on travis