added resignation + tests