Add integration tests

I think I understand what this is for now. In this case, I suppose what we need to do is move the default template from the module into this file, but we can fiddle with that post-merge.