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.

moritz/otrs,muehlbauer/otrs,thorsteneckel/otrs,brandonshults01/otrs,nilei/otrs,mbeijen/otrs-1,xhoy/otrs,mbeijen/otrs-1,oiami/otrs,capeit-tto/otrs,MBRG/otrs,rudy500/otrs,thorsteneckel/otrs,linearregression/otrs,vlascoder/otrs,oiami/otrs,linearregression/otrs,eliasp/otrs,StCyr/otrs,crythias/otrs,nilei/otrs,xhoy/otrs,MBRG/otrs,crythias/otrs,PortgasDAce/otrs,MBRG/otrs,vlascoder/otrs,PortgasDAce/otrs,balazj/otrs,muehlbauer/otrs,eliasp/otrs,oiami/otrs,s7design/otrs,oiami/otrs,moritz/otrs,s7design/otrs,mburggraf/otrs,thorsteneckel/otrs,s7design/otrs,capeit-tto/otrs,thorsteneckel/otrs,balazj/otrs,xhoy/otrs,eliasp/otrs,rudy500/otrs,oiami/otrs,moritz/otrs,mburggraf/otrs,crythias/otrs,PortgasDAce/otrs,PortgasDAce/otrs,crythias/otrs,StCyr/otrs,muehlbauer/otrs,brandonshults01/otrs,xhoy/otrs,noritnk/otrs,balazj/otrs,PortgasDAce/otrs,vlascoder/otrs,MBRG/otrs,linearregression/otrs,nilei/otrs,StCyr/otrs,rudy500/otrs,eliasp/otrs,balazj/otrs,nilei/otrs,rudy500/otrs,linearregression/otrs,brandonshults01/otrs,StCyr/otrs,muehlbauer/otrs,mburggraf/otrs,mbeijen/otrs-1,linearregression/otrs,mburggraf/otrs,noritnk/otrs,balazj/otrs,capeit-tto/otrs,eliasp/otrs,s7design/otrs,xhoy/otrs,rudy500/otrs,MBRG/otrs,moritz/otrs,thorsteneckel/otrs,s7design/otrs,noritnk/otrs,crythias/otrs,brandonshults01/otrs,moritz/otrs,muehlbauer/otrs,nilei/otrs,brandonshults01/otrs,StCyr/otrs,mburggraf/otrs