Added tests to verify that local time is correctly handled

Related to change - I0fb5afae91a3b1240402d252b8e3a4fe0497fa05

Change-Id: I5ea8534790c2f25f53d0591ebc94d533e6d87ffc