Fix parser test that checks for invalid promise type