Fix method name in test