Updated unit test. Removed the use of global variables and QA of coding style.
Updated unit test. Removed the use of global variables and QA of coding style.

otrs-xx/otrs,otrs-xx/otrs,otrs-xx/otrs,otrs-xx/otrs