Test for invalid id