Document is now explicitly passed for file import.
Added additional CLI tests for file import.