Added tests for result return.