Addressing comments on PR 804.

Rewriting expect() calls to use Jasmine jQuery event spies. Making individual
it() tests independent.