Add try-invoke function and test, lookup-plugins test.