add earley ast printer
extract a base class for file based tests
correct test data encoding name
add earley parser tests infrastructure