unit tested temperature equality helper methods
and fixed a bug