Add functional tests

Closes #17
Doesn't it already have that with the form key / valid check? We shouldn't use a confirm box.