JPA extended context

Test for JPA extended persistence context. Checking database changes against flushed and not flushed transaction.