Improve consistency of `load...` functions.

Also add additional tests for them.