Add tests for case the slave is deleted or workspace of project was deleted