CLOUDIFY-2073 Unit test pass. Coded n instances exapnsion func.