Add rect_test.go for intersection.

I was sure I introduced a bug in the last pull request so I wrote I small test. It was fine after all but since it's already written... here it is.