Assert function call, compare call as method and as function.