No, this was a successful test! Very small changes in the energy of an object can cause large changes in its trajectory. An impact at this same scale could be the difference between a direct collision with Earth, and not even getting inside the moon's orbit. We don't need any mass to be knocked off. In fact, it's probably even more effective if the target stays intact.
What we do need is time. If the asteroid is weeks away, we've got a great chance of deflecting it. If it's hours, we'll certainly be struck.