Included the test cased from eric tests, which where directly generated
from the original tests. 
Adopted the validate.js with new insights.