Fix can not download bugs and add some test