tests for getExtent