updated math.state and added test