Improvements to byte range handling in StaticContentServer

https://openedx.atlassian.net/browse/PLAT-104

Right now not clear what values are causing this error so added logging too.
Since most of these tests have the same structure, it'd be worth using the @ddt decorator to run through the different values.