added all the math and controls blocks. Modified their tests