extracting test class