fixed bug with passing SW_HIDE to ProcessComponent::ExecCmd and added unit test accordingly