added unit test for cpu opposite corners check