move test data into files

The test files make the tests themselves a bit easier to follow.

Fixes #60