Test that updating vars works