Add test code for seting item with invalid inputs