basic test case for structs