These tests were failing due to a variable passed being undefined instead of being of an incorrect type which is the actual intent of the tests.