$scope.setPendingTest = function(test) {
        $http.put(config.baseApiPath + '/acceptance-tests/' + test._id + '/validation', {
            state: 'pending'
        }).then(function() {
            test.state = 'pending';