Added test of method invocation.