Add UMKAssertTrueBeforeTimeout macro and fix unused variable warning

@jnjosh Review please. Just moved a macro from the unit testing code to the TestUtilities. Also fixed a warning in one of the unit tests.