Note that this commit also applies a similar change to the imageable_attach_new_file method by removing an unnecessary variable. In order to testing with more than 1 max documents allowed we keep one test with this value.