fix close(::Figure) and add test
#23
+9
−2
Merged
close(::Figure) and add test
#23