updated tests for parser warnings, fixed a couple of bugs along the way