Add test for loading the latest revision. Minor fixes.