CanGetMax test.

At first I thought I was doing something pretty wrong, but after trying stuff at it seems that MaxKey is always null. Accept the PR if this is actually an error. I am doing it in a different way now.