Add tests for clear and loading.