Add tests (and related fixes) for handling rejected submissions
Better naming of accepted and rejected states: :done -> :accepted, :error -> :rejected
Rebuild