All major functions tested with jasmine