Initial basic tests

I haven't quite figured out how to test this properly yet -- that's next on my list.

I've been using the incomplete test to figure out the betamax stuff, but that's more or less done for now.