Write a note on devising validating and testing of algorithm