Update tests for previous API change