Code refactor
Updated tests for temperature min and max