Testing widgets detached method.