BUG/TST: New tests on data with missing gaps revealed bugs."