Add test for adding invalid entry