I think maybe you want to accept expected === 0 for the testing. How about `isNaN(expected)`?