add a test for the preload method