math: Statically link tests of internal functionality