Bug 862742 - Fix lint and unit tests errors for sdcard import r=francisco.jordano

Fix linter errors and outdated unit tests that were breaking the build for https://bugzilla.mozilla.org/show_bug.cgi?id=862742.