A new technique to measure static and dynamic properties of a partially saturated porous medium