Check that calling a non-function properly generates a panic.