Remove some grammar from the tests

- java.cf because it has non unique names
- DefinedRules.cf because it uses a special feature (defined functions)
  which I'm not familiar with.