Instead of adding this return value to the code above you can use the mock utils to check that none of the other paths were run and that the handler returned undefined.