Add generic loading function and corresponding test

4 jobs for theo-gen-load in 18 minutes and 2 seconds (queued for 15 minutes and 6 seconds)