add inversion count tests