Resolved some issues in jpa eclipselink... wrote small test