Direct imports result not updated correctly after manual load #277

Unit test provided by Phil Lord and fix for the bug.