[Garima] added sort by time
[Garima] refactored tests