Add test for illegal method keyword