Added assertion to Starcounter with different behavior for running on build server or not. Using in the test. Needed for #2347.