Unit testing is essential to assure quality especially with mission critical pieces of logic. Attached is a guide on how to do this.