Added actor tests fixed bugs in actor