Add GET API test for example URL.
Bit of code cleanup.