Issue #8. Integration tests.