Inversion tests and printing.