adjusting test cases, only scripts with src will be restored