added support for test environment out of the box for server:run

                      
|Q            |A     |
|---          |---   |
|Bug Fix?     |no    |
|New Feature? |no    |
|BC Breaks?   |no    |
|Deprecations?|no    |
|Tests Pass?  |yes   |
|Fixed Tickets|#10461|
|License      |MIT   |
|Doc PR       |#3688 |