Fixed some unit testcases and sorted the mock data.

Monitor network  and a few dashboard tests needs to be fixed yet