Functional test init - refactoring