Turn numpy warnings into exceptions

I've notice that some of the tests in modeling give numpy runtime warnings (e.g. overflow error) and Travis silently ignores them. I wonder if we should instead turn the warnings into exceptions, the rationale being that we should write tests that always pass. I am submitting this PR so that Travis runs and it's easier to see the difference.