handle 0 size local data in tests.