Added some basic unit tests for the invokeAny implementation