Unit test for correct removal of chains and hetatms in source_setup