added test that uses structs