Fix tests 11 14

Replaced all the tests for the JS SDK so that they will consistently show us when stuff is working and what not. Do not pull in until the tests pass in Travis.