Fix for testing tags with multiple classes