Add test for append to array with empty key