Add and fix failing tests related with tasks validation.