begin the doOperation method with test