Add caching test for relation fields.
Make loaddata command retain locale (close #151).