Updated unit test for PassThroughEncoder