refactored actor unit tests