integer tests parametrized and exceptions tested by type and message