[3048] Added unit tests.

Gist: https://gist.github.com/mjelonek92/494f26f5c346fadc2614
```
interval = utils.interval(
    datetime.time(1, 0, 15),
    datetime.time(3, 30, 27)
)
```