Added tests

I added a load of tests, but I had to comment out a test in network.js because of errors that are documented as comments in the code. I also changed to a new API key as the one you had in there before was giving errors as I mentioned in an email to @jacobwg earlier :)