fixed 'should avoid empty data' test passing