Sharpen stub tests

Two tweaks to the newest stubbing tests:

- Make test fail by raising, not by being slow.
- Make stubbing of Math.log10 more clear. The stub now returns a value obviously outside the domain. This makes the test easier to skim and doesn't require the reader to know how logarithms work.