Add test for loading failure