Add root export (eg window)
Add tests for resource