Add a unit test for tracked().