Updating unit test to account for refactor