Split MessageFactoryTest case into smaller ones.

They are now split into multiple test cases testing individual message types.
Also fixed javadoc and class layout, since it was copied straight from
the EntityTest class.