test cases for different data structures