[MAINT] Add tests for the `ImagePyramid` class.

As the title says.