restored main class for tests
detects class (OK) and coin (TBT) from log