function _addSuiteFunction(type, func) {
        var suiteId = (jasmine.getEnv().currentSuite || _rootSuite).id;
        if (!_testSuites[suiteId]) {
            _testSuites[suiteId] = {
                beforeFirst : [],
                afterLast   : [],
                specCounter : null
            };
        }
        _testSuites[suiteId][type].push(func);
    }
@private
Adds a new before all or after all function to the current suite. If requires it creates a new
object to store the before all and after all functions and a spec counter for the current suite.
@param {string} type  "beforeFirst" or "afterLast"
@param {function} func  The function to store