custom test for R Programming, Matrices and Data Frames