run self-tests during build

I have no idea whether this'll work, but from the logs it looks like the tests aren't running. This would make sense to do if it's not too hard to get running.