update messages model and tests