Add test case for key override