Add test for check_niimg with ensure_3d=True and a non 3d image as argument

In one of my old branch, I bumped into a bug that was actually fixed in master [here](
https://github.com/nilearn/nilearn/commit/3781b2beea3b031aa5fd16704c20de49887483cc).

On my way of fixing it again, I added a test to `check_niimg` and tweaked an error message. I thought I would do a pull request to justify wasting my time.