Add test for dynamic targets