rewrote tests for find_RI()
added a test for add_intervals function