rewrite unit tests with new syntax
move definition of go() and call it on EOF