test case for transformation of y before modelling