Cleanup in test

- Nothing important
If there is no global deployment just issue warning

- Not throw exceplion