Add test to check error position and remaining input.