WIP: write an integration test