finish class and testClass