Fix variables scope in test
Merge pull request #752 from ezhdan-sugarcrm/tests-fix

Fix variables scope in test