Fixed usage of functions `isnan` and `isinf`.
Removed boost reference from tests.