Cover messaging feature with tests
Add uniqueness of ids of new message forms and fields
Remove debug code