Added tests to cover the cases where two courses with overlapping detail are added