Corrections on validate.js file and started tests creation