add tests for setView
added tests for addSubView and removeSubViews
added test for close
fixed close not triggering closed event