tests for passing the wrong data type