Refactoring Pacman tests