improve parser error message
fix parsing spaces before )
add to test case