Add a simple functional test