Make sure exception is thrown