unit tests for load()