Check for valid body type in parser, unit test