trying to write integration test