Handle parentheses on methods without arguments correctly (see #1002277)

The Unit Tests still contain some code duplication; I'm not sure if removing it is worth the effort, as it might make the code less readable.