use entity manager inside jboss to create test data

- this will ensure second level cache and lucene search index correctness
- less overhead of maintaining another customised copy of persistence.xml
- test is much more stable