Added server testing capability and test cases