Refactoring: Move test code to test package.
Description
The class CountingResultBase has the method public static void main(String args[]) which may execute test code. Refactor to test package. Replace System.out and System.err messages by proper TestCase assertions.
Environment
None