Test cleanup

This moves most of the test's Pig code into the Java files as multiline strings in javadoc.