Some notices removed

In order to use behat with oxid these notices should be removed.