refactors router specs to use test factory