refactored mymethod, added another unit-test for mymethod