Adding a behat test that verify a class material is deleted with the class node.

Relate to issue #2508