Removed global statement from tests