Fix for bug 2713 - Make ifmap_state_machine_test run faster

Change the timer from seconds to milliseconds and other code that needs to
change because of this change. Change the testcases appropriately and also
change the testcases so that they pass with high gtest_repeat values.