Add #line directive
fix error checking test for appveyor