LPS-51969 Rearrange conditional in 'prepare-test-build' as 'test.build.unit' is only set when running backend tests