resourceloader: Add basic tests for getScript() and buildContent()