Ensured missing imports are handled by checker correctly, corrected error checks in import-related tests