small fixes + adding tests + name alignment of custom class (task,precon...

small fixes + adding tests + name alignment of custom class (task,precondition)