Initial support for integration tests, close #40