added NaN test and doc for tan