Edit tests for serialization and imagick segfault
Add command for removing trailing spaces from doc