Fix tests for invalid tan/cot

testing is_flint(???/180) was imprecise on some systems and was
not detecting limit cases correctly. Multiplying by the precomputed
constant 1/180 gives the correct result.
Add test for cotd in +/-180