fixed tests for structs