Cleanup of TestActorRef constructor, see #2728

* Don't expose internal classes in public constructor