Feature/cover with tests

I added a lot of tests, but we're not at 100% coverage yet. There are some things I still need to work out, but this is a big enough fix/addition that I want to go and get this merged so future work can be done by looking and how these tests are set up.
I looked into that, but apparently there's no way to do this with Qunit.  I'll check it out again, because that's what I wanted to do originally, too.