add event post test in spec file