Refactoring and covered missed code branches with tests
- Errors thrown in the lambda passed to BaseRepositoryClient.execute method are thrown synchronously and vanish. Added try-catch block inside the
execute
block where in the catch the error is propagated asynchronously by Promise.reject-ing it. - Implemented more tests for query payload classes to cover some missed code branches.