Add assertClass method.