make unit test for post API
make unit test for comment API
add comments code for unit test
add log file