Refactoring functional tests for model menu