integration test added (still needs some assertions)