Fixing ModelEditor tests that do depend on GUI

[#79483828]
Fixing OpenStudioLib tests that do depend on GUI

[#79483828]