<p>How to unit test the windows workflows?</p>

MS dropped the ball on making workflows easily mockable and testable.  If you want to do thorough tests on your custom activities you'll need to purchase a mocking framework that can mock sealed types such as
TypeMock.
Otherwise, you'll have to write your code around the limitations of Workflow.