adding and purging tests for row/colvect and putting scalar def in right place