Add tests for nested and remote refs

Couple more tests:
- test that $refs inside $refs from the same schema work
- test that $refs inside a $ref to a remote schema work