Fixed piecewise spaceconversion
added piecewise addition test