Added a function type mismatch unit test