fix error-catching tests

I was finding that the pending tests which attempt to test the illegal triangle dimensions weren't properly failing if `new Triangle()` never throws, thus skipping the expectation. Moving the expectation so it's not inside the `catch` block means it still gets run even if the `catch` block doesn't.