Tests + coverage + small fixes

* Fixes in extend() and outOfInterval()
Fixing conflicts to accept lgiraudel's pull request
Passing builds Jasmine & jshint