Adding a test to catch invalid types

This test checkts to see if the parameter type is invalid