changed location of cell referencing test from cell to table