Add jasmine spec test to validate fix.