Added test on wrong type checking