System tests

Fixes #37