Corrected test to reflect changes in API