Fixed race condition in time period test


The test fails if the the milliseconds increase between these two statements: `nowValue.isBeforeNow() || nowValue.isEqualNow()`. At first it is not before now, time steps forward and it is before now but not equal to now...