Add a unit test for zero duration animations

This tests the support for zero length animations that was added in pull request #126