Add scheme tests, serialization/deserialization of grammars