Fixing the warnings while running unit tests for hyper agent.
Added a new switch for functional tests.