added test that metadata pases to underlying def