Added tests for JPA lifecycle events during merge operation
Added support for tracking removed entities. Allows merge test case 3 to pass