thrift handler tests - functional. port options now accept port 0