fixed a bug in wind
started implementing test suite