implemented unit test for vms/post/detail.js