CFY-225 reverse priority and use ctx.porperties instead of an argument
CFY-225 fix tests