Add tests for paperclip