write log test case