Updated unit test to reflect new interface