Remove useless dependencies for functional tests
Fix test dependencies