Add integration test for adding dependencies in Controller