refactor application helper test