add unit test for actor