Add some more numerical unit tests (contributed by Brad Lucier)