Added unit tests for rolling_window function.
Merge pull request #811 from ajdawson/rolling-window-unit-tests

Added unit tests for rolling_window function.