add Unit test case for serverview refactored functions
Merge pull request #473 from xmujay/0629_UT_serverview

add Unit test case for serverview refactored functions