improvements to import.rb
add tests for ImportWorker