test_input_ncols function

checks matrix column input