unit test case for server_status newly refactored functions