Move inversion test to dir