message.Code added, tests added