Improved api tester, introduced errors handlers in API