add test cases for infinity