add simple functional test