Added in warning alert plus fleshed out Jasmine tests.