tests pass but insert on Site does not write document