checkOrigin() tested