Added tests to make sure the method _contains of an Interval returns
False when passed a set (regarding issue #7805).