Add test for the `compat` modifier.