Add test helper for syntax checker tests