Add tests for autoloading.
Cleanup current_scope