Fix error with wrong clr and ca uri and add test for it
new function could exit before there were ok and get methods added. Those two methods are expected to be in uri object every time and on some errors it resulted to nothing saying error about not existing get function instead of message with real problem.
Fixes #83 (closed)