Fix for #242
added test
Merge pull request #315 from rmcgibbo/mdcrd-stride

Fix for #242