Fix ms and rms tests to cope with numerical errors
Fix test zero crossings
Revert to cos(theta) for directivity figure eight