Added unit test for main svalidator.