added tests for Interval class, degenerate intervals now can be checked for equality with numbers