Corrected tests for sum to use row vectors
Replace column collapse back to correct behavior