unit test case for server_binlog newly refactored functions