JIRA issue TRUNK-4212: Fix several race conditions that were causing this
test to fail. Speed up the test by using CountDownLatch instead of
arbitrary Thread.sleep() intervals. Fix database unique identifier issues
by removing hardcoded ids from the persistent TaskDefinition objects.