Tests: Invert and add regression test for #8.