THRIFT-2796: Added testcase for THRIFT-2793. Needs testing.

I've tried compiling thrift tip on OSX Yosemite but I'm getting some compiler errors. Got a vagrant Ubuntu box but have other issues getting the build off the ground. 

Maybe someone else can review the test case?