Fix incrementKey and add inList test