refactored moonshine index
added tests for app-loader.