Added a new assertion to check if the returned values is null or not.