Fixed bug in test project. Animation with duration zero fails by
generating a null animation. We now add 1 to duration to avoid this
issue.