Fix typo: assertion should use the correct function name