Test groups can be defined by simple Javascript objects

- This becomes the standard way of defining groups.
Remove isTestFile() and isTestGroup() methods. "instanceof" should be used instead.