Tests and refactoring in PostArchive, Tag and Comment