Tests for and (bad) implementation of parser