Added Assertion checks to models.js and added Testing.js file

added assertion checks to most of models.js, added Testing.js to use for
unit checks and it also includes the assertion function I used