Initial gate arithmetic tests.