Created tests and code for PowerDown method.