setup tests
added tests for different request types, refactored curl helper