Added tests for request and invoke methods