Added testing and code coverage via istanbul and jasmine.