Fixed 'should not throw an exception if a category and document are provided' test.