Change the decompression bomb warning into a subclass of RuntimeWarning to aid filtering

Also convert the test case to use the unittest module.