TST: added test for raising ValueError for non-1d input