Test stringify of gate values