- improve the management of attached/detached state detection in functional tests

- fix unit tests for renaming of test_rpdb2.py to run_func_tests.py