Added Unit tests for times and timesWithIndex