new tests, handle infinity in sin/cos