added test from ldm