added testing and test class, and logging config