Refactor Pieces Management specs

Use shared examples to reduce duplication.
Add tests for successful and unsuccessful piece creation/editing.