D8beta4 tests fix

Many fixes to make tests or module work with new core updates.