wrapping test file loader in try catch