test error throwing in use strict