These tests are copied from the Bartok source tree.