Changed format of tests to prevent cascading errors

This fixes #13 where a failed test wouldn't modify the `parsed` variable so the test would give incorrect feedback based on a previously generated parse tree.