Added regression test for thrift + structs