Implemented equals method in DefTimeInterval and added unit test