added testing and statistics class