Testing for unobserved heterogeneous treatment effects in a nonseparable model with endogenous selection