Item entity validator with tests.