Reduce code duplication in tests for transform.radon_transform

As the title says: Reduce code duplication. Only (intended) functionality change is that the random seed is always set before generating random data.

I have also included a few PEP8 fixes I stumbled upon in the tests for radon_transform in this PR.