Tests for message classes inheritance