Add test to check data structure integrity