improved checks for precision when initializing WbTime objects

also used the 'self' keyword instead of the hardcoded class name
and added two tests

Change-Id: Ieffc18ebac19050ceb4d71246a042db1d4b29db3
Merge "improved checks for precision when initializing WbTime objects"