fix - refs in test, add tempfile import for use in temp repo instantiation.