unit test for targets