Run tests

Made the tests run in the browser (currently not working in the command line).