added pry to the test helper
refactored moip query request and added one more test