partial experimental rewrite of ManagedRepositoryTest

This PR does not leave us with working tests: partly because of the TODO in the comments, partly because delete on the server doesn't work. The previous integration tests needed substantial rewriting to fit with the current server. Hopefully, this PR now brings us much closer to detecting when and how the server's delete functionality remains wanting.