Added test for setting publish state.
Updated test to use same datetime instance.
Removed commented out lifecycle callbacks.
Added UpdatedBy to the prePersist settings.