Adding unit tests for gtimer
Added unit tests for gtimer