More robust unit tests for fast_dot.