Add log_message method for tests
Add log_message method for tests

BaseModel calls the log_message global function to log using of
deprecated where building method, and when tests are ran, this method
does not exist, because CI instance is not present.

slax0rr/BaseModel