test cases added for model and fixed.