testing that registering with invalid HTTP allowed methods raises an error