Initial resolve base test.

Once we think this is a good idea i'll port the rest of the resolve tests and file tickets for broken functionality.
I don't really like this approach with ref/def markup — it's too verbose. We prefer just a plain highlighting tests or the manual checking in some very complicated cases.