Added GetFreeTime test cases
Merging with clare's changes