Add a unit test on addActor