Tests and partial implementation of operations.
Changed Interval to be immutable