Fix global in test 'remove'
Merge pull request #509 from starwed/fix-test

Fix global in test 'remove'