added test for heigh-matching