added example functional test