Fix issue if payload is not specified
Adding a spec for actions