refactor add and multiply tests