Add unit test for the new method