Adding a test for wrong type