added unit test for simple online arithmetic