Added jsdom test dependency.
Updated tests.