Add tests for s4 loading and unloading