update tests
throw error when validation-map is not an object