Add tests for the metadata proxy.