fix for osx compile
add some basic tests for parser and printer