added a test for updating gauge metric