add compiler error diagnostics test