Added base test for JPA optimistic locking check