test: make sure tokens are never undefined