[Luiza, Felix] Refactored functional tests. Extracted them to new classes.