Add tests for Cache#getRule about matched cases