Test cases are done finally!!! added some "close()" but I stopped doing that.