test isValid

Extract validationCases out of validate test, move eventLog.warn
redefinition into validate test
Add isValid test that does assertFalse() on validationCases.
Still some more to add.

Change-Id: Ie284072116964b1d157aececaa527dad9c680aba
Merge "test isValid"