added tests to dynamic array and changed assertTrue to assertEqual in disjoint set