Fixed database consistency in HibernateEventWriterTest by using @Transactional.
Added transaction blocks to Eventd init and HibernateEventWriter's
process() method.
Added @Transactional to unit test and added more asserts to figure out
why it's failing.