Viewport tests

I'm at another good stopping point for these, so here's another pull request. I'm trying to not put them all in one enormous code review, just for sanity's sake.
Sorry I didn't catch this before, but what's the intention with -1 and 0 zoom levels? They're both illegal zoom levels.