add shouldRedirectToHomeWhenCreatePostSuccess  Junit test