updated the test suite for inversions