phpdoc reformat
add testcase for rest service