Feature #4977: Improve JS test case for AssetsManager