modified unitests for interval and line