upgrade jasmine and karma, fix tests for upgraded libraries