Updating test case to check the return value not just the status of the request.