test: add test_setup and test_functional