Fixing some linux loading issue and updating test code with rendering example