util: prepareProjection() + unit-test