started adding parser debug messages; fixed some tests