Added first tests

Wrote the first real test. Currently failing because core.js is not in
the gh-pages branch.