Bugfix: test inversion