Adding unit test for checking precoding with expansion