Add test for descending compound/simple intervals
Fix simple interval calculation for descending intervals