add issue test, fix close signature