Add tests for load function