Fix loader tests