Bug fixes and unit tests for wind models