modify test assertions (to detect errors arising  due to Nan)