tests for sameas validator