updating test for int_step
added tests for positive and negative infinity
added C++ documentation for behavior with NaN