adds route factory tests