Updates test to match corrected API