Fix some formatting issues (long lines).
Add more comments explaining the rationale of this tests suite.
Add get_token utility function to avoid hardcoding too much.