THRIFT-2628/2689 add tests for legacy name generation option

client: erlang
patch: alisdair sullivan