add tests for infinite inputs