tests for validation and core