Simplified unique constraint declaration on JPA EventEntry
Improved test to make it independent of execution order