Added checks for empty cells in test phase.