Fixed bugs in issues client and tests