Functional tests refactored into separate files.