tests for creating a petition