add tasks controller spec for json access