How to validate the Javascript tests