Fix/warnings in pr344

Fixes compiler warnings in unit test for clear gaps.