moved checkModel task and its assertions out of the sample into the according testcase

+review REVIEW-5076