Clean up tests and bug fix

The tests were a bit messy by not using setUpClass. I've fixed that by using it.
In addition, the polymer code had an untested bug in that polymers_sequence
didn't work. I've fixed it but not tested that. A test should be added.