test defer script