Minor refactorings in actor tests