moved logMessage and added deprecation test
moved logMessage and added deprecation test