test for origin check