added the jasmine tests updated the quality issues