set serviceRoot end with "/".
refactor test case for automatically test.