fix broken unit tests by avoid triggering deprecated behaviour (unless intended)

this also includes the fixes in #1123, #1124 and #1127 which are required to make all tests pass
you probably want to do this in a setup method? 
and then set it back after your test is done?