api router tests