refactor routeing test