refactor test so it's more robust for the live/dead algorithm
more refactoring for robust tests