Add test for illegal method keyword diagnostics