Added test for POST /revision, and fixed bugs in that endpoint.