cosh.cpp unit test modified to cope with std::cos instabilities