empty table check in tests added