fix log message
fix log message, the privious state was not print correctly
BS-1542, removed random test (restore it as a unit test when treating TR BS-1542)
Merge branch 'master'