Remove globals from observer test.