Set grammars before test