i can unit test with embedded glassifsh and embedded derby now. the only change needed is to use test-persistence.xml in tests:
.addAsManifestResource("test-persistence.xml",
                        ArchivePaths.create("persistence.xml"))