test setup for ld