Add test case for ScriptableFileSystem and some fixes.

While implementing the test case, I found some points to fix.

First, we can't use BeyondConfiguration if there's no running app. I added a fix for this by loading the configuration with the `load` function.

Second, I found a bug in ScriptableFileSystem. I also added a fix.

Lastly, I added the test case.