$window needs to be included as an argument so that it can be injected...
.controller('TestCtrl', function ($scope, $stateParams, $window) {
document.getElementById('next_question').addEventListener('click', function (e) {
$window.location.href = '#/tab/category/1';
return true;
}, false);
})