Bug fix in test case for NewPostEmail