Fix error raising when using nonexistent http method
Add one test and travis configuration with py.test