Autorefresh the badge count for active deploys.
Added unit tests for the angularjs code