Unit test case for refactored functions: PMA_server_replication