Minor test refactoring.
Fixed bug in post-processing queue and added test.