spec: improve test case to see error position