Model tests

This contributes to #86.

Will use sqlite:memory.