Validation for sample number in test group table. Better generation of sample number values in sample management table.

Sample number is evaluated for not being empty field and for integer value.