This tests that 'performance.measure' throws exceptions with reasonable messages.