move functional tests in package