Change categories when editing a rule

#165 
With the new change parent function, current_parent_id should be rule_id and I would test it with invalid rule_ids and invalid parent_ids in the data set.