Add test for FieldDefinition
Add tests regarding asString method at On class. Fix missing validation on # support for On class.