Add TestLogger, tool for testing logging in tests.
Add log_suspicious_operation() and its test.
Fix problem of log_suspicious_operation not dealing with None values.

Plus tests.