tests for invocation