fix simd math operations and improve test