Relocate validators to their own file

* Create new validators.js file
* Fix more unit test scoping and classname issues