add common utility and its test case
restructure output for test case
add test case for common utility