fix Loader issue, add TestLoader