Replaced d3.tsv with $http.get for writing better mocks