testing the data structure