Added more tests

Review by @jspam please
It should be `public void x()`, else the parser will rightfully reject it.