API: prepare tests to work for GET as well.
tests: add tests for GET API method.