added tests to datastructures