move demo grammar to test - only used in the unit tests
#8 try fixing entity decoding