Cooker-class test refactored and PEP8 checked