wip: functional tests