add Unit test case for serverview refactored functions