Update lib/change_petition

Require an integer as a petition_id
Update stubs to use allow() syntax