Fixed typo and fixed bug with destructor being called in test on ssh object