Test case for modle and fix for assets create(intially it was not creating after one failed attempt)