Tests: Rewrite post_generator classes to use inheritance.