Add unit test for Target object.