fix unescaped '+' in query params

fixes #223
ported Api tests to new class