Shale preservation and testing techniques for borehole-stability studies