Is there a test for passing the wrong type when creating a typed query?