Added integration test.

More commits regarding this to come.