A test for hyperscaling violation in the three-dimensional Ising model