Trying to make tests less brittle.

- added @Transactional annotations
- initialize collections in entities to avoid NPEs