test: functional tests