Refactor insertLoader tests