updating importFileset helper to get access to the request object
refactoring code to get few helpers useful for test
adding basic test for reimport