[BZ 1120411] Fix the integration tests and move selection from profile to managed