Add tests covering data alignment and missing values.
Merge pull request #118 from danielballan/test-alignment

Add tests covering data alignment and missing values.