Testing Document class with RSpec.