Tests + coverage + small fixes

* Fixes in extend() and outOfInterval()