[time.js] Constructor tests for time.Time and introduction of time.validTimeDefinitions

* making use of time.validTimeDefinitions in new test but also in time.Time.validate test now.

Change-Id: I8ceda8dd9b5a5340766c64b9b0a1ab4744669003
Merge "[time.js] Constructor tests for time.Time and introduction of time.validTimeDefinitions"