Fix global in test 'remove'