Bug 1050396 - Properly handle zero duration in ring command.

Isn't this introducing some async code ? If so, I'm not sure about the behavior of the asserts after, and you need to add a done() call in the test.