What jumps out to me at first is the backticks on `Peak Vertical Force / BW`, but I'm assuming that's just a column name and not an attempt at division.
Next that jumps out is TestType and TestTypeName being aliased as testType and testTypeName- spark by default is case insensitive with column names, which could be contributing to issues.
I don't see anything else that jumps out to me as fundamentally wrong, so next step is to just start tweaking/removing random things until it works and then re-adding to see where the line between broken/working is.
I'd start by removing the WHERE clause and seeing what shows up, and if that doesn't work strip back the columns selected and turn the WHEN...OR...THEN into a separate WHEN for each condition.