tests for holes in array and more complex temporary fix for it