adding extra tests for to_h and to_hash