Updated unit test to reflect change to API