Fixed tests problems with documents size