Added what seems to be a functional test.