Add test for decoding vars and update function