Test coverage of the invoke method.
Merge pull request #479 from SBoudrias/invoke

Test coverage of the invoke method.