Update testCounter.java

Now reflects Hashim's error checking although some anomalies still exist!