Added assertThrow method to toolkit.