Enable agant code test run with kernel as well and add sample 

1) Use ksync_init in testinit to determine test_mode status. If agent UT needs to be run with kernel then disable test_mode.
2) Add sample code (in test_global_vrouter_config.cc) to enable tap interfaces in kernel.