add more tests for widget types before their deletion or accessing them