Test that Router returns the correct types.