Disable functional tests conditionally

Added functional tests to the main solution.
Disabled functional tests conditionally based on the environment settings.