Added unit tests for DateTimeRange class (with some fixes)

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Merge pull request #114 from vogel/unit-tests

Added unit tests for DateTimeRange class (with some fixes)