Add encoding test to parser