ESDEV-2156 Create metadata validator

use assert true instead of assertSame when expecting boolean value