added a negative test case for difference function