added HTTP method constants and made tests pass