add try_remove with unittest