added a test for actors, need to modularize it
merged