Added debugging properties to persistence unit.
Prepared implementation for testing.
Added new test case.