fixed save problems in cropdescriptor. add tests