Tests for newmath