Return result object when only one successful response is returned
Fix type in unit test