introduce some unit tests, for the more dodgy parser parts.