Several minor code improvements
Code improvement

- QueryGenerator and MDNetworkGenerator do not use ITAGlobals to access
testParameters now.

- Created a simple test case in JUnit test