Decouple URL helper tests from actual models
Add document class and specs
Use document class; fix models
Add mock_document helper
Refactor model tests
Return true when write was successful