can we put this in a new function, `test_one_hot_encoder_dense`?