Laboratory testing of muds