add tests for rectangular pooling