Test for adding a class