update tests
fix bug when optimizing renamed input files in emcc