Adding tests for time_to_threshold feature

Card 699

Change-Id: I628aeab8c318067904d507c4f2ca99e9a2effc43