minor refactor following code review + adding new test for when comparison value is 0