Rule extraction unit test