Add test for key(n)