Added the testers back into the code.
Added the destructor for avoiding memory leak.