Added test for duplicate tags. Added animation.

Modified tests to prevent race situations. Used wait construct instead.