fix tests for invalid loading