add test about when data is null